<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
<h1>判断操作</h1>
今天是
@if ($week==1)
星期一
@elseif($week==2)
星期二
@elseif($week==3)
星期三
@elseif($week==4)
星期四
@elseif($week==5)
星期五
@elseif($week==6)
星期六
@elseif ($week==7)
星期天
@endif 

</body>
</html>